﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="cebao.Web.Default" %>


<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>有害生物测报信息服务平台</title>
    <link href="CSS/Index.css" rel="stylesheet" />
    <script src="Script/easyui/jquery.min.js"></script>
    <style>
        html,body {height:100%;width:100%;}         
        .bg {
            background: url(images/dylog.jpg);
            filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale')";
            -moz-background-size: 100% 100%;
            background-size: 100% 100%;
           height:auto;min-height:100%;
           width:auto;min-width:100%;
        }
        input,img{vertical-align:middle;}
       .divbox {display:inline; width:600px; vertical-align:middle; height:30px;  position:absolute;    left:50%;    top:50%;    margin-left:-300px;    margin-top:-20px; }
    </style>
    <script language="javascript">
        function CheckForm() {
            if ($('#txtName').val() == "") {
                alert("请输入用户名！");
                document.Login.yhm.focus();
                return false;
            }
            if ($('#txtName').val() == "用户名") {
                alert("请输入用户名！");
                return false;
            }
            if ($('#txtPwd').val() == "") {
                alert("请输入密码！");
                document.Login.mima.focus();
                return false;
            }
            if ($('#txtPwd').val() == "密码") {
                alert("请输入密码！");
                return false;
            }
            if ($('#txtCode').val() == "") {
                alert("请输入您的验证码！");
                return (false);
            }
            if ($('#txtCode').val() == "验证码") {
                alert("请输入您的验证码！");
                return (false);
            }
        }
        function changetxtf(s, t, c) {
            if ($(s).val() == t) {
                $(s).val("");
                $(s).attr("class", c);
            }
        }
        function changetxtb(s, t, c) {
            if ($(s).val() == "") {
                $(s).val(t);
                $(s).attr("class", c);
            }
        }


    </script>
</head>
<body>
    <form id="form1" runat="server">
        <div align="center" class="bg">
            <%--<div style=" position:relative; width:1366px; height:628px; background-image: url('images/log.png');">--%>
            <div class="divbox">
                
                <asp:TextBox ID="txtName" CssClass="txt" runat="server" Text="用户名" onfocus="changetxtf(this,'用户名','txt1')" onblur="changetxtb(this,'用户名','txt')"></asp:TextBox>
                <asp:TextBox ID="txtPwd" CssClass="txt"  runat="server" Text="密码" onfocus="changetxtf(this,'密码','txt1')" onblur="changetxtb(this,'密码','txt')" TextMode="Password"></asp:TextBox>
                <span>&nbsp;</span>               
                <asp:CheckBox runat="server" ID="chkpwd" name="jzmm" value="1" Text="记住密码" />
                <asp:ImageButton  src="/images/dl.jpg" ID="ImageButton1" runat="server" OnClick="btnLogin_Click" />

                <img id="ImageButton2" src="/images/qx.jpg"  />
               </div>
        </div>


    </form>
</body>
</html>